﻿/**
 * File:   aidl_parser.h
 * Author: AWTK Develop Team
 * Brief:  parse aidl
 *
 * Copyright (c) 2018 - 2020  Guangzhou ZHIYUAN Electronics Co.,Ltd.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * License file for more details.
 *
 */

/**
 * History:
 * ================================================================
 * 2020-12-09 zhang zhongji <zhangzhongji@zlg.cn> created
 *
 */

#ifndef TK_AIDL_PARSER_H
#define TK_AIDL_PARSER_H

#include "tkc/types_def.h"
#include "tkc/str.h"
#include "tkc/slist.h"
#include "aidl_defines.h"

BEGIN_C_DECLS

/**
 * @method aidl_parser_convert
 * aidl转换成指定格式字符串。
 * @param {const char*} str aidl文件。
 * @param {uint32_t} size aidl文件大小。
 * @param {builder_t*} builder 转换器。
 *
 * @return {char* } 返回非NULL为成功，否则失败。
 */
ret_t aidl_parser_convert(const char* str, uint32_t size, builder_t* builder);

END_C_DECLS

#endif /*TK_AIDL_PARSER_H*/
